<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
	<title>网站设置</title>
	<link href="__ADMIN__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__ADMIN__/css/rightmain.css">

</head>
<body>
	<div class="iframecontent">
			 <div class="pos clearfix"><button class="btn btn-success">商品管理</button><span class="right"><button class="btn btn-info">商品修改</button></span></div>
			 <div class="list">
					 <div class="itab" id="itab">
							 <ul class="clearfix">
							 </ul>
					 </div>
					 <div class="itabcontent" id="itabcontent">
							 <!--站点配置开始-->
							 <form method='post' action='' enctype="multipart/form-data">
							 <div class="itabcontentlist zdpz">
								 					<input type="hidden" name="id" value="{$goodsinfo.goods_id}" />
									 <dl class="clearfix">
											 <dt>商品名称：</dt>
											 <dd>
													 <input type="text" name="name" value="{$goodsinfo.goods_name}" />
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品价格：</dt>
											 <dd>
													 <input type="text" name="price" value="{$goodsinfo.goods_price}" />
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品会员价：</dt>
											 <dd>
													 <input type="text" name="vip_price" value="{$goodsinfo.goods_vip_price}" />
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品数量：</dt>
											 <dd>
													 <input type="text" name="num" value="{$goodsinfo.goods_num}" />
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品关键字：</dt>
											 <dd>
													 <input type="text" name="key" value="{$goodsinfo.goods_key}" />
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品重量：</dt>
											 <dd>
													 <input type="text" name="weight" value="{$goodsinfo.goods_weight}" />
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品是否上架：</dt>
											 <dd>
												 	<if condition="$goodsinfo['goods_isdel'] eq '上架' ">
													 <input type="radio" name="isdel"  value='上架' checked='checked'/>上架
													 <input type="radio" name="isdel"  value='下架'/>下架
													<else/>
													<input type="radio" name="isdel"  value='上架' />上架
													<input type="radio" name="isdel"  value='下架' checked='checked' />下架
													</if>
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品图片：</dt>
											 <dd>
													 <input type="file" name='pic' />
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品分类：</dt>
											 <dd>
													 <select name="cate">
															 <option value="1">blog</option>
															 <option value="2" selected="selected">default</option>
													 </select>
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt>商品描述：</dt>
											 <dd>
													 <input type="text" name="introduce" value="{$goodsinfo.goods_introduce}"/>
											 </dd>
									 </dl>
									 <dl class="clearfix">
											 <dt class="surebtn">保存按钮：</dt>
											 <dd>
													 <a href="javascript:;" class="btn btn-info" />保存</a>
											 </dd>
									 </dl>
							 </div>
						 </form>
					 </div>
			 </div>
	 </div>
      <script src="__ADMIN__/public/js/jquery-3.1.1.js"></script>
      <!-- Include all compiled plugins (below), or include individual files as needed -->
      <script src="__ADMIN__/bootstrap/js/bootstrap.min.js"></script>
      <script type="text/javascript">
      //alert($)

      $(function(){
      	 $("#itab ul li").click(function(){
                    var _id = $(this).index();

                    $(this).addClass('current-item').siblings().removeClass('current-item');
                    $('#itabcontent').children('.itabcontentlist').eq(_id).fadeIn('fast').siblings('.itabcontentlist').css('display','none');
                });
								$('.btn-info').click(function(){
									$('form').submit();
								});

      })
      </script>
  </body>
</html>
